{% extends "blog/base_blog.html" %}

{% block title %} Blog de {{ otros.blog.autor.username }} | {{ otros.blog.titulo }}  {% endblock %}
{% block blog_autor %} {{ otros.blog.autor.username }} {% endblock %} 
{% block blog_titulo %} {{ otros.blog.titulo }} {% endblock %}
{% block blog_descripcion %}  {{ otros.blog.descripcion|slice:"0:80"|striptags  }}... {% endblock %}

{% block content %}

{% load comments.comments %}

{% for post in lista %}
	
		{% get_free_comment_count for blog.post post.id as comment_count %}
		<a href="{{ post.get_absolute_url }}"><h2>{{ post.titulo }}</h2></a>
        <strong>{{ post.descripcion }}</strong>
        
		<p class="comments align-right">
			Posteado el {{ post.fecha|date:"j F, Y" }}
        	| {{ post.lecturas}} lecturas 
			| Comentarios: <a href="{{ post.get_absolute_url }}#comments">
			{{ comment_count }} comment{{ comment_count|pluralize }}</a>
			<br/>
			<strong>Tags:</strong>
	        {% for tag in post.tags.all %} 
    	    	<a href="/blog/tag/{{tag.slug}}" title="{{tag.slug}}">{{tag.slug}}</a> 
        	{% endfor %}
        	| <a href="{{ post.get_absolute_url }}">Leer mas...</a>
		</p>
{% endfor %}
{% if lista %}     
    {% include "comun/indice-paginator.html" %}
{% endif %}



{% endblock %}
